package com.zxl.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxl.common.model.pojo.SysOrder;
import com.zxl.common.model.query.order.OrderPageQuery;
import com.zxl.common.model.vo.order.OrderDetailsVo;
import com.zxl.common.model.vo.order.OrderList;
import com.zxl.common.model.vo.order.OrderPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author zxw
 * @since 2023-03-30
 */
public interface SysOrderMapper extends BaseMapper<SysOrder> {

    List<OrderPageVo> getOrderList(OrderPageQuery orderPageQuery);

    List<OrderList> list(@Param("memberId") Integer memberId, @Param("orderStatus") String orderStatus);

    OrderDetailsVo getOrderDetails(String orderCode);
}
